package cn.kgc.vue.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/8/10
 * @Description: 自定义token
 */
public class JWTToken implements AuthenticationToken {

    private String token;

    public JWTToken(String token){
        this.token = token;
    }

    public String getToken() {
        return token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
